package com.household.controller.company;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created By wanzhen
 * 2023. 2023/3/25. 11:46
 */

@RestController
@RequestMapping("/company")
@PreAuthorize("hasRole('ROLE_COMPANY')")
public class CompanyPageController {

    @RequestMapping("/index")
    public String index(){
        return "company ok";
    }
}
